#region Usings

using System;
using System.Collections.Generic;

#endregion

namespace Karma.Framework.Core.Domain.Tools.Import.Extension
{
    public interface IEntityPersisterListener
    {
        bool CanApplyTo(Type type);

        void OnBeforePersistAll(IList<DomainObject> entities);

        void OnAfterPersistAll(IList<DomainObject> entities);

        void OnBeforePersist(DomainObject entity);

        void OnAfterPersist(DomainObject entity);

        void OnBeforeUpdate(DomainObject entity);

        void OnAfterUpdate(DomainObject entity);
    }
}